package main.chapter3

class House
class Flower

open class Courtyard {
    //不可见
    private val house = House()
    //子类可见
    protected val flower = Flower()
}

class ForbiddenCity {
    //默认public
    val house = House()
    //模块内可见，与Java混编时谨慎使用
    internal val flower = Flower()
}

fun main(args: Array<String>) {
    val courtyard = Courtyard()
    val forbiddenCity = ForbiddenCity()
    forbiddenCity.house
    forbiddenCity.flower
}